Optimal. Leaf size=143 \[ \frac {\left (8 b^2 c^2+a d (8 b c-a d)\right ) \sqrt {c+d x^2}}{8 c^2}-\frac {a^2 \left (c+d x^2\right )^{3/2}}{4 c x^4}-\frac {a (8 b c-a d) \left (c+d x^2\right )^{3/2}}{8 c^2 x^2}-\frac {\left (8 b^2 c^2+a d (8 b c-a d)\right ) \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{8 c^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 140, normalized size of antiderivative = 0.98, number of steps
used = 6, number of rules used = 6, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {457, 91, 79, 52,
65, 214} \begin {gather*} -\frac {a^2 \left (c+d x^2\right )^{3/2}}{4 c x^4}+\frac {1}{8} \sqrt {c+d x^2} \left (\frac {a d (8 b c-a d)}{c^2}+8 b^2\right )-\frac {\left (a d (8 b c-a d)+8 b^2 c^2\right ) \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{8 c^{3/2}}-\frac {a \left (c+d x^2\right )^{3/2} (8 b c-a d)}{8 c^2 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 65
Rule 79
Rule 91
Rule 214
Rule 457
Rubi steps
\begin {align*} \int \frac {\left (a+b x^2\right )^2 \sqrt {c+d x^2}}{x^5} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {(a+b x)^2 \sqrt {c+d x}}{x^3} \, dx,x,x^2\right )\\ &=-\frac {a^2 \left (c+d x^2\right )^{3/2}}{4 c x^4}+\frac {\text {Subst}\left (\int \frac {\left (\frac {1}{2} a (8 b c-a d)+2 b^2 c x\right ) \sqrt {c+d x}}{x^2} \, dx,x,x^2\right )}{4 c}\\ &=-\frac {a^2 \left (c+d x^2\right )^{3/2}}{4 c x^4}-\frac {a (8 b c-a d) \left (c+d x^2\right )^{3/2}}{8 c^2 x^2}+\frac {1}{16} \left (8 b^2+\frac {a d (8 b c-a d)}{c^2}\right ) \text {Subst}\left (\int \frac {\sqrt {c+d x}}{x} \, dx,x,x^2\right )\\ &=\frac {1}{8} \left (8 b^2+\frac {a d (8 b c-a d)}{c^2}\right ) \sqrt {c+d x^2}-\frac {a^2 \left (c+d x^2\right )^{3/2}}{4 c x^4}-\frac {a (8 b c-a d) \left (c+d x^2\right )^{3/2}}{8 c^2 x^2}+\frac {1}{16} \left (c \left (8 b^2+\frac {a d (8 b c-a d)}{c^2}\right )\right ) \text {Subst}\left (\int \frac {1}{x \sqrt {c+d x}} \, dx,x,x^2\right )\\ &=\frac {1}{8} \left (8 b^2+\frac {a d (8 b c-a d)}{c^2}\right ) \sqrt {c+d x^2}-\frac {a^2 \left (c+d x^2\right )^{3/2}}{4 c x^4}-\frac {a (8 b c-a d) \left (c+d x^2\right )^{3/2}}{8 c^2 x^2}+\frac {\left (c \left (8 b^2+\frac {a d (8 b c-a d)}{c^2}\right )\right ) \text {Subst}\left (\int \frac {1}{-\frac {c}{d}+\frac {x^2}{d}} \, dx,x,\sqrt {c+d x^2}\right )}{8 d}\\ &=\frac {1}{8} \left (8 b^2+\frac {a d (8 b c-a d)}{c^2}\right ) \sqrt {c+d x^2}-\frac {a^2 \left (c+d x^2\right )^{3/2}}{4 c x^4}-\frac {a (8 b c-a d) \left (c+d x^2\right )^{3/2}}{8 c^2 x^2}-\frac {1}{8} \sqrt {c} \left (8 b^2+\frac {a d (8 b c-a d)}{c^2}\right ) \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.22, size = 104, normalized size = 0.73 \begin {gather*} \frac {\sqrt {c+d x^2} \left (-2 a^2 c-8 a b c x^2-a^2 d x^2+8 b^2 c x^4\right )}{8 c x^4}+\frac {\left (-8 b^2 c^2-8 a b c d+a^2 d^2\right ) \tanh ^{-1}\left (\frac {\sqrt {c+d x^2}}{\sqrt {c}}\right )}{8 c^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.11, size = 200, normalized size = 1.40
method | result | size |
risch | \(-\frac {\sqrt {d \,x^{2}+c}\, a \left (a d \,x^{2}+8 c \,x^{2} b +2 a c \right )}{8 x^{4} c}+b^{2} \sqrt {d \,x^{2}+c}+\frac {\ln \left (\frac {2 c +2 \sqrt {c}\, \sqrt {d \,x^{2}+c}}{x}\right ) a^{2} d^{2}}{8 c^{\frac {3}{2}}}-\frac {\ln \left (\frac {2 c +2 \sqrt {c}\, \sqrt {d \,x^{2}+c}}{x}\right ) a b d}{\sqrt {c}}-\sqrt {c}\, \ln \left (\frac {2 c +2 \sqrt {c}\, \sqrt {d \,x^{2}+c}}{x}\right ) b^{2}\) | \(147\) |
default | \(a^{2} \left (-\frac {\left (d \,x^{2}+c \right )^{\frac {3}{2}}}{4 c \,x^{4}}-\frac {d \left (-\frac {\left (d \,x^{2}+c \right )^{\frac {3}{2}}}{2 c \,x^{2}}+\frac {d \left (\sqrt {d \,x^{2}+c}-\sqrt {c}\, \ln \left (\frac {2 c +2 \sqrt {c}\, \sqrt {d \,x^{2}+c}}{x}\right )\right )}{2 c}\right )}{4 c}\right )+2 a b \left (-\frac {\left (d \,x^{2}+c \right )^{\frac {3}{2}}}{2 c \,x^{2}}+\frac {d \left (\sqrt {d \,x^{2}+c}-\sqrt {c}\, \ln \left (\frac {2 c +2 \sqrt {c}\, \sqrt {d \,x^{2}+c}}{x}\right )\right )}{2 c}\right )+b^{2} \left (\sqrt {d \,x^{2}+c}-\sqrt {c}\, \ln \left (\frac {2 c +2 \sqrt {c}\, \sqrt {d \,x^{2}+c}}{x}\right )\right )\) | \(200\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 173, normalized size = 1.21 \begin {gather*} -b^{2} \sqrt {c} \operatorname {arsinh}\left (\frac {c}{\sqrt {c d} {\left | x \right |}}\right ) - \frac {a b d \operatorname {arsinh}\left (\frac {c}{\sqrt {c d} {\left | x \right |}}\right )}{\sqrt {c}} + \frac {a^{2} d^{2} \operatorname {arsinh}\left (\frac {c}{\sqrt {c d} {\left | x \right |}}\right )}{8 \, c^{\frac {3}{2}}} + \sqrt {d x^{2} + c} b^{2} + \frac {\sqrt {d x^{2} + c} a b d}{c} - \frac {\sqrt {d x^{2} + c} a^{2} d^{2}}{8 \, c^{2}} - \frac {{\left (d x^{2} + c\right )}^{\frac {3}{2}} a b}{c x^{2}} + \frac {{\left (d x^{2} + c\right )}^{\frac {3}{2}} a^{2} d}{8 \, c^{2} x^{2}} - \frac {{\left (d x^{2} + c\right )}^{\frac {3}{2}} a^{2}}{4 \, c x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.73, size = 225, normalized size = 1.57 \begin {gather*} \left [-\frac {{\left (8 \, b^{2} c^{2} + 8 \, a b c d - a^{2} d^{2}\right )} \sqrt {c} x^{4} \log \left (-\frac {d x^{2} + 2 \, \sqrt {d x^{2} + c} \sqrt {c} + 2 \, c}{x^{2}}\right ) - 2 \, {\left (8 \, b^{2} c^{2} x^{4} - 2 \, a^{2} c^{2} - {\left (8 \, a b c^{2} + a^{2} c d\right )} x^{2}\right )} \sqrt {d x^{2} + c}}{16 \, c^{2} x^{4}}, \frac {{\left (8 \, b^{2} c^{2} + 8 \, a b c d - a^{2} d^{2}\right )} \sqrt {-c} x^{4} \arctan \left (\frac {\sqrt {-c}}{\sqrt {d x^{2} + c}}\right ) + {\left (8 \, b^{2} c^{2} x^{4} - 2 \, a^{2} c^{2} - {\left (8 \, a b c^{2} + a^{2} c d\right )} x^{2}\right )} \sqrt {d x^{2} + c}}{8 \, c^{2} x^{4}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 67.57, size = 219, normalized size = 1.53 \begin {gather*} - \frac {a^{2} c}{4 \sqrt {d} x^{5} \sqrt {\frac {c}{d x^{2}} + 1}} - \frac {3 a^{2} \sqrt {d}}{8 x^{3} \sqrt {\frac {c}{d x^{2}} + 1}} - \frac {a^{2} d^{\frac {3}{2}}}{8 c x \sqrt {\frac {c}{d x^{2}} + 1}} + \frac {a^{2} d^{2} \operatorname {asinh}{\left (\frac {\sqrt {c}}{\sqrt {d} x} \right )}}{8 c^{\frac {3}{2}}} - \frac {a b \sqrt {d} \sqrt {\frac {c}{d x^{2}} + 1}}{x} - \frac {a b d \operatorname {asinh}{\left (\frac {\sqrt {c}}{\sqrt {d} x} \right )}}{\sqrt {c}} - b^{2} \sqrt {c} \operatorname {asinh}{\left (\frac {\sqrt {c}}{\sqrt {d} x} \right )} + \frac {b^{2} c}{\sqrt {d} x \sqrt {\frac {c}{d x^{2}} + 1}} + \frac {b^{2} \sqrt {d} x}{\sqrt {\frac {c}{d x^{2}} + 1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.39, size = 153, normalized size = 1.07 \begin {gather*} \frac {8 \, \sqrt {d x^{2} + c} b^{2} d + \frac {{\left (8 \, b^{2} c^{2} d + 8 \, a b c d^{2} - a^{2} d^{3}\right )} \arctan \left (\frac {\sqrt {d x^{2} + c}}{\sqrt {-c}}\right )}{\sqrt {-c} c} - \frac {8 \, {\left (d x^{2} + c\right )}^{\frac {3}{2}} a b c d^{2} - 8 \, \sqrt {d x^{2} + c} a b c^{2} d^{2} + {\left (d x^{2} + c\right )}^{\frac {3}{2}} a^{2} d^{3} + \sqrt {d x^{2} + c} a^{2} c d^{3}}{c d^{2} x^{4}}}{8 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.62, size = 137, normalized size = 0.96 \begin {gather*} b^2\,\sqrt {d\,x^2+c}-\frac {\left (\frac {a^2\,d^2}{8}-a\,b\,c\,d\right )\,\sqrt {d\,x^2+c}+\frac {\left (a^2\,d^2+8\,b\,c\,a\,d\right )\,{\left (d\,x^2+c\right )}^{3/2}}{8\,c}}{{\left (d\,x^2+c\right )}^2-2\,c\,\left (d\,x^2+c\right )+c^2}-\frac {\mathrm {atanh}\left (\frac {\sqrt {d\,x^2+c}}{\sqrt {c}}\right )\,\left (-a^2\,d^2+8\,a\,b\,c\,d+8\,b^2\,c^2\right )}{8\,c^{3/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________